﻿using System.Windows.Input;

namespace ImageViewerControl
{
    /// <summary>
    /// 控件库命令
    /// </summary>
    public static class ControlCommands
    {
        static ControlCommands()
        {
            RotateRight = new RoutedCommand(nameof(RotateRight), typeof(ControlCommands));
            RotateLeft = new RoutedCommand(nameof(RotateLeft), typeof(ControlCommands));
            Reduce = new RoutedCommand(nameof(Reduce), typeof(ControlCommands));
            Enlarge = new RoutedCommand(nameof(Enlarge), typeof(ControlCommands));
            Restore = new RoutedCommand(nameof(Restore), typeof(ControlCommands));
            Open = new RoutedCommand(nameof(Open), typeof(ControlCommands));
            Save = new RoutedCommand(nameof(Save), typeof(ControlCommands));
        }
        /// <summary>
        ///     右转
        /// </summary>
        public static RoutedCommand RotateRight { get; set; }

        /// <summary>
        ///     左转
        /// </summary>
        public static RoutedCommand RotateLeft { get; set; }
        /// <summary>
        ///     小
        /// </summary>
        public static RoutedCommand Reduce { get; set; }

        /// <summary>
        ///     大
        /// </summary>
        public static RoutedCommand Enlarge { get; set; }

        /// <summary>
        ///     还原
        /// </summary>
        public static RoutedCommand Restore { get; set; }

        /// <summary>
        ///     打开
        /// </summary>
        public static RoutedCommand Open { get; set; }

        /// <summary>
        ///     保存
        /// </summary>
        public static RoutedCommand Save { get; set; }
    }
}
